<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
    <li class="active">返水设置</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> 彩票管理 <small> <i class="icon-double-angle-right"></i> 返水设置 </small> </h1>
  </div>
      <div class="">
                    <div class="tabbable">
                    
                      <ul class="nav nav-tabs" id="myTab" style="margin-bottom: 5px;border: none;">
                           <li>
                           <a <if condition="$pan eq 'A'">class="btn btn-primary"<else /> class="btn btn-info"</if> href="{:U('Admin/Lottryodds/dl_return_setting',array('pan'=>'A'))}">A盘</a>
                           </li>
                           <li>
                           <a <if condition="$pan eq 'C'">class="btn btn-primary"<else /> class="btn btn-info"</if> href="{:U('Admin/Lottryodds/dl_return_setting',array('pan'=>'C'))}">C盘</a>
                           </li>
                      </ul>
                    
                      <ul class="nav nav-tabs" id="myTab">
                       <foreach name="lottry_array" item="val" key="key">
                        <li>
                         <if condition="$key eq $c_id">
                          <a class="btn btn-primary" href="{:U('Admin/Lottryodds/dl_return_setting',array('pan'=>$pan,'c_id'=>$key))}">{$val.text}</a>
                         <else />
                          <a class="btn btn-info" href="{:U('Admin/Lottryodds/dl_return_setting',array('pan'=>$pan,'c_id'=>$key))}">{$val.text}</a>
                         </if> 
                        </li>
                        </foreach>
                        
                      </ul>

                      <div class="tab-content">
                         
                  <div class="table-responsive dataTables_wrapper">
                   <!-- <include file="Layout/{$tpl}" />-->
            <form class="form-horizontal" action="{:U('Admin/Lottryodds/change_dl_rebate')}" id="validation-form" method="post" enctype="multipart/form-data">
               <input type="hidden" value="{$c_id}" name="c_id">
                <input type="hidden" value="{$pan}" name="pan">
              <table id="sample-table-1" class="table table-center table-striped table-bordered table-hover dataTable">
                    <thead>
                      <tr>
                        <th>种类</th>
                        <th>比例</th>
                        <th>最低投注额</th>
                        <th>最高投注额</th>
                        <th>每期最高投注额</th>
                        <th>种类</th>
                        <th>比例</th>
                        <th>最低投注额</th>
                        <th>最高投注额</th>
                        <th>每期最高投注额</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td>正码 </td>
                        <td><div class="wan-spinner wan-spinner-1" style="display:inline-block; vertical-align:middle;"><a href="javascript:void(0)" class="minus">-</a><input type="text" value="{$rebate.ZM}" name="ctype[ZM]"><a href="javascript:void(0)" class="plus">+</a></div><span style="display:inline-block; vertical-align:middle; padding-left:15px; color:#999;">%</span></td>
                        <td><input type="text" value="{$minAmount.ZM}" name="minAmount[ZM]"></td>
                        <td><input type="text" value="{$maxAmount.ZM}" name="maxAmount[ZM]"></td>
                        <td><input type="text" value="{$maxPeriod.ZM}" name="maxPeriod[ZM]"></td>
                        <td>前后和   </td>
                        <td><div class="wan-spinner wan-spinner-1" style="display:inline-block; vertical-align:middle;"><a href="javascript:void(0)" class="minus">-</a><input type="text" value="{$rebate.QHH}" name="ctype[QHH]"><a href="javascript:void(0)" class="plus">+</a></div><span style="display:inline-block; vertical-align:middle; padding-left:15px; color:#999;">%</span></td>
                        <td><input type="text" value="{$minAmount.QHH}" name="minAmount[QHH]"></td>
                        <td><input type="text" value="{$maxAmount.QHH}" name="maxAmount[QHH]"></td>
                        <td><input type="text" value="{$maxPeriod.QHH}" name="maxPeriod[QHH]"></td>
                      </tr>
                      <tr>
                        <td>两面   </td>
                        <td><div class="wan-spinner wan-spinner-1" style="display:inline-block; vertical-align:middle;"><a href="javascript:void(0)" class="minus">-</a><input type="text" value="{$rebate.LH}" name="ctype[LH]"><a href="javascript:void(0)" class="plus">+</a></div><span style="display:inline-block; vertical-align:middle; padding-left:15px; color:#999;">%</span></td>
                        <td><input type="text" value="{$minAmount.LH}" name="minAmount[LH]"></td>
                        <td><input type="text" value="{$maxAmount.LH}" name="maxAmount[LH]"></td>
                        <td><input type="text" value="{$maxPeriod.LH}" name="maxPeriod[LH]"></td>
                      
                        <td>单双和   </td>
                        <td><div class="wan-spinner wan-spinner-1" style="display:inline-block; vertical-align:middle;"><a href="javascript:void(0)" class="minus">-</a><input type="text" value="{$rebate.ZDS}" name="ctype[ZDS]"><a href="javascript:void(0)" class="plus">+</a></div><span style="display:inline-block; vertical-align:middle; padding-left:15px; color:#999;">%</span></td>
                        <td><input type="text" value="{$minAmount.ZDS}" name="minAmount[ZDS]"></td>
                        <td><input type="text" value="{$maxAmount.ZDS}" name="maxAmount[ZDS]"></td>
                        <td><input type="text" value="{$maxPeriod.ZDS}" name="maxPeriod[ZDS]"></td>
                      </tr>
                         <tr>
                        <td>总和和局    </td>
                        <td><div class="wan-spinner wan-spinner-1" style="display:inline-block; vertical-align:middle;"><a href="javascript:void(0)" class="minus">-</a><input type="text" value="{$rebate.ZDX}" name="ctype[ZDX]"><a href="javascript:void(0)" class="plus">+</a></div><span style="display:inline-block; vertical-align:middle; padding-left:15px; color:#999;">%</span></td>
                        <td><input type="text" value="{$minAmount.ZDX}" name="minAmount[ZDX]"></td>
                        <td><input type="text" value="{$maxAmount.ZDX}" name="maxAmount[ZDX]"></td>
                        <td><input type="text" value="{$maxPeriod.ZDX}" name="maxPeriod[ZDX]"></td>
                      
                        <td>五行   </td>
                        <td><div class="wan-spinner wan-spinner-1" style="display:inline-block; vertical-align:middle;"><a href="javascript:void(0)" class="minus">-</a><input type="text" value="{$rebate.WX}" name="ctype[WX]"><a href="javascript:void(0)" class="plus">+</a></div><span style="display:inline-block; vertical-align:middle; padding-left:15px; color:#999;">%</span></td>
                        <td><input type="text" value="{$minAmount.WX}" name="minAmount[WX]"></td>
                        <td><input type="text" value="{$maxAmount.WX}" name="maxAmount[WX]"></td>
                        <td><input type="text" value="{$maxPeriod.WX}" name="maxPeriod[WX]"></td>
                      </tr>
                              <tr>
                        <td>总和过关      </td>
                        <td><div class="wan-spinner wan-spinner-1" style="display:inline-block; vertical-align:middle;"><a href="javascript:void(0)" class="minus">-</a><input type="text" value="{$rebate.ZHT}" name="ctype[ZHT]"><a href="javascript:void(0)" class="plus">+</a></div><span style="display:inline-block; vertical-align:middle; padding-left:15px; color:#999;">%</span></td>
                        <td><input type="text" value="{$minAmount.ZHT}" name="minAmount[ZHT]"></td>
                        <td><input type="text" value="{$maxAmount.ZHT}" name="maxAmount[ZHT]"></td>
                        <td><input type="text" value="{$maxPeriod.ZHT}" name="maxPeriod[ZHT]"></td>
                        </tr>
                    </tbody>
                  </table>
<div class="row" style="background: #edeeef;padding: 10px;">
  <div style="text-align: center;">
    <button type="submit" class="btn btn-info">确认修改</button>
  </div>
</div>
           </form>
                   </div>
                
                
                <!-- /.table-responsive --> 
                      </div>
                    </div>
                  </div>
      <!-- /.table-responsive --> 
    </div>
    <div >{$page}</div>
  </div>
</div>
<include file="Layout/js"/>
 
<script src="__ADMIN_JS__/bootbox.js"></script> 
<link rel="stylesheet" href="__ADMIN_JS__/wan-spinner/wan-spinner.css" />
<script src="__ADMIN_JS__/wan-spinner/wan-spinner.js"></script>
<script type="text/javascript">
$(function(){
  $(".wan-spinner-1").WanSpinner({minValue:0,maxValue:49,step:1});
})
</script>
</body>
</html>